namespace BXS.API.Models
{
    /// <summary>
    /// AI咨询商品
    /// </summary>
    public class AiInquiryProduct
    {
        /// <summary>
        /// 商品名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }

        /// <summary>
        /// 预估价格
        /// </summary>
        public decimal EstimatedPrice { get; set; }
    }

    /// <summary>
    /// AI咨询模型
    /// </summary>
    public class AiInquiry
    {
        /// <summary>
        /// 咨询ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 咨询编号
        /// </summary>
        public string InquiryNo { get; set; } = string.Empty;

        /// <summary>
        /// 客户姓名
        /// </summary>
        public string CustomerName { get; set; } = string.Empty;

        /// <summary>
        /// 客户电话
        /// </summary>
        public string CustomerPhone { get; set; } = string.Empty;

        /// <summary>
        /// 预估金额
        /// </summary>
        public decimal TotalAmount { get; set; }

        /// <summary>
        /// 咨询状态
        /// </summary>
        public string Status { get; set; } = "pending";

        /// <summary>
        /// 创建时间
        /// </summary>
        public string CreateTime { get; set; } = string.Empty;

        /// <summary>
        /// 商品列表
        /// </summary>
        public List<AiInquiryProduct> Products { get; set; } = new List<AiInquiryProduct>();

        /// <summary>
        /// AI识别结果
        /// </summary>
        public string? AiResponse { get; set; }

        /// <summary>
        /// 管理员回复
        /// </summary>
        public string? AdminResponse { get; set; }
    }

    /// <summary>
    /// AI咨询创建请求
    /// </summary>
    public class CreateAiInquiryRequest
    {
        /// <summary>
        /// 客户姓名
        /// </summary>
        public string CustomerName { get; set; } = string.Empty;

        /// <summary>
        /// 客户电话
        /// </summary>
        public string CustomerPhone { get; set; } = string.Empty;

        /// <summary>
        /// 商品列表
        /// </summary>
        public List<AiInquiryProduct> Products { get; set; } = new List<AiInquiryProduct>();
    }

    /// <summary>
    /// AI咨询状态更新请求
    /// </summary>
    public class UpdateAiInquiryStatusRequest
    {
        /// <summary>
        /// 咨询ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 新状态
        /// </summary>
        public string Status { get; set; } = string.Empty;
    }

    /// <summary>
    /// AI咨询回复请求
    /// </summary>
    public class ReplyAiInquiryRequest
    {
        /// <summary>
        /// 咨询ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 回复内容
        /// </summary>
        public string Response { get; set; } = string.Empty;
    }
} 